Backport: Don't autoload erc-modules
authorF. Jason Park <jp@neverwas.me>
Tue, 15 Oct 2024 02:32:16 +0000 (19:32 -0700)
committerF. Jason Park <jp@neverwas.me>
Sat, 16 Nov 2024 16:17:46 +0000 (08:17 -0800)
commit6036e0dadf307ebf75e9da16915857e86e8d3340
tree1ef54d14a8b9d8e9676f149b0f35faa37338eba8
parentfc52cb8d74151bcac18d534529517a0a1845ad2e
Backport: Don't autoload erc-modules

* doc/misc/erc.texi (Modules): Recommend using `describe-variable'
instead of `customize-option' because the latter needs the symbol to be
loaded.
* lisp/erc/erc.el (erc-modules): Remove autoload cookie because it
caused customizations for this option to load the main library.  This
reverts the thrust of bb894845 "Teach customize-option about
erc-modules", which was added in ERC 5.6 and Emacs 30.  The motivation
for the original offending change was to allow new users to run M-x
customize-option RET erc-modules RET immediately after startup instead
of M-x customize-group RET, followed by an I-search.  (Bug#73812)

(Cherry picked from commit 1854f2751e3f73e1e5f12f6de993b6357de1766b)

Do not merge to master.
doc/misc/erc.texi
lisp/erc/erc.el